home *** CD-ROM | disk | FTP | other *** search
- global gScreenSaverInstalled, gTotalScreenInstalls, gCardID
-
- on exitFrame me
- if gScreenSaverInstalled = 0 then
- if the timer > 500 then
- go("error")
- else
- go("install_loop")
- end if
- else
- decryptIni("sreg.ini")
- gTotalScreenInstalls = gTotalScreenInstalls + 1
- iniWrite = setIni("sreg.ini", gCardID, "gTotalScreenInstalls", string(gTotalScreenInstalls))
- if dosGetLastError() <> 0 then
- put "Ini Error:" & dosGetLastError() & " gTotalScreenInstalls from game_win"
- end if
- encryptIni("sreg.ini")
- if the platform contains "mac" then
- go("install_success_mac")
- else
- go("install_success_pc")
- end if
- end if
- end
-